<?php
//Pengaturan folder penyimpanan
$nama_folder = "upload/";
//Kode untuk menerima form
if (!empty($_FILES["namafile"]["tmp_name"])) {
  if(is_uploaded_file($_FILES['file']['tmp_name'])) {
    move_uploaded_file($_FILES['namafile']['tmp_name'],$uploaddir.$_FILES['namafile']['name']);
    echo "File berhasil terkirim";
  }
} else {
  echo "Anda";
}
?>